Utility.asType Method
Returns a value determined to be the specified type.
Parameters
- type
-
Type: String
The name of the type, consistent with the types supported by jQuery.type.
- value
-
Type: Object
Any object.
Return Value
Type: Object
The original value if its type matches the specified type; otherwise, null.